package com.zrt.springboot.mapper;

import com.zrt.springboot.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 青哥哥
 * @since 2022-12-31
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Insert("insert into graduate_design.sys_user values (0,#{username},#{password},#{nickname},#{email},#{phone},#{address},#{createTime},#{avatarUrl},#{role})")
    int insert(User user);

}
